﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.AspNetCore.DataProtection.KeyManagement;
using Microsoft.AspNetCore.Http.HttpResults;

using OfficialWeb.Core;

using OOS.Core.RelyOn;

using SqlSugar;

namespace OOS.Core.Dish
{
    /// <summary>
    /// 菜品管理
    /// </summary>
    [SugarTable("dish_basic_info")]
    public class DishBasic:IdAndIsDeletedAndSortAndUserIntBase
    {
        /// <summary>
        /// 菜品名称
        /// </summary>
        [SugarColumn(ColumnName = "dish_name")]
        public String DishName { get; set; }
        /// <summary>
        /// 菜品分类id
        /// </summary>
        [SugarColumn(ColumnName = "category_id")]
        public int CategoryId {  get; set; }
        /// <summary>
        /// 菜品价格
        /// </summary>
        [SugarColumn(ColumnName = "price")]
        public double Price { get; set; }
        /// <summary>
        /// 菜品图片
        /// </summary>
        [SugarColumn(ColumnName = "image")]
        public String Image {  get; set; }
        /// <summary>
        /// 售卖状态 1,启售；2,停售
        /// </summary>
        [SugarColumn(ColumnName = "status")]
        public int Status {  get; set; }
        /// <summary>
        /// 菜品描述
        /// </summary>
        [SugarColumn(ColumnName = "description")]
        public String Description { get; set; }

        /// <summary>
        /// 口味列表
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<DishFlavor> dishFlavors { get; set; }
    }
}
